# -*- coding: utf-8 -*-
# @File     : validators.py
# @Author   : bingjia
# @Time     : 2020/8/11 10:31
# @Desc     :

from operation.base.api import serializers


class DataValidator(serializers.Serializer):
    """
    数据验证
    """
    pass


class MarkDataValidator(serializers.Serializer):
    """
    标记数据验证
    """
    size = serializers.IntegerField()
    mark_date = serializers.DateTimeField()
    name = serializers.CharField(max_length=64)
    category_number = serializers.IntegerField()
    category = serializers.CharField(max_length=500)
    data_type = serializers.CharField(max_length=16)

